This page is part of the [[mios_c_simulator_-_debugger]]

[[acsim_console_h|ACSim_console.h]]\\
[[acsim_console_c|ACSim_console.c]]\\

[[acsim_mios_h|ACSim_mios.h]]\\
[[acsim_mios_c|ACSim_mios.c]]\\

**[[acsim_toolbox_h|ACSim_toolbox.h]]**\\
[[acsim_toolbox_c|ACSim_toolbox.c]]\\
[[acmididefines|ACMidiDefines.h]]\\
\\
This code is for viewing only and may not be up to date. You can download the files in a zip file {{acsim:acsim.zip}}. If you make any updates, please send them to stryd_one and he will update the zip for you.
\\
\\
<code c>
/*
 *  ACSim_toolbox.h
 *  v 0.0.5
 *
 *  2006 April 17 Created by Michael Markert, audiocommander.de
 *  Copyright 2006 Michael Markert, http://www.audiocommander.de
 *  hexview based on publicdomain code: http://www.eggdrop.ch/texts/cschnipsel/
 *  toolbox for mios: http://www.midibox.org
 *
 */

/*
 * Released under GNU General Public License
 * http://www.gnu.org/licenses/gpl.html
 * 
 * This program is free software; you can redistribute it and/or modify it under the terms
 * of the GNU General Public License as published by the Free Software Foundation
 *
 * YOU ARE ALLOWED TO COPY AND CHANGE 
 * BUT YOU MUST RELEASE THE SOURCE TOO (UNDER GNU GPL) IF YOU RELEASE YOUR PRODUCT 
 * YOU ARE NOT ALLOWED NOT USE IT WITHIN PROPRIETARY CLOSED-SOURCE PROJECTS
 */


#import <Stdio.h>


#ifndef _ACSIM_TOOLBOX_H
#define _ACSIM_TOOLBOX_H



// generate some random numbers
extern unsigned char ACRandomBool(void);
extern signed char   ACRandomEncoder(void);
extern unsigned char ACRandomPin(void);
extern unsigned char ACRandomChar(void);
extern unsigned int  ACRandomInt(void);



// hexview output
#define HEXVIEW_COLUMNS 68
#define HEXVIEW_CHARS ((HEXVIEW_COLUMNS-1)/4)

extern void hexview(unsigned char *buf, int size);


#endif	/* _ACSIM_TOOLBOX_H */
</code>